<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
  <link rel="stylesheet" type="text/css" href="/site_media/style.css" />
  <title>Le site des UV</title>
  {% block head %}{% endblock %}
  <style type="text/css">
.error { color: red; }
  </style>
 </head>

 <body>
  <h1><a href="/"><span>Critic</span></a></h1>

  <div id="sidebar">
    {% if user.is_anonymous %}
   <div class="sidenotlogged">
   </div>
    {% else %}
   <div class="sidelogged">
    <p id="loggedas">Bienvenue {{user.username|capfirst}}!</p>
    <ul>
      <li class="menutitle">Menu</li>
      <li><a href="/">Accueil</a></li>
      <li><a href="/account/">Mon compte</a></li>
      <li><a href="/logout/">D&eacute;connexion</a></li>

      <li class="menutitle">Voir les UVs de</li>
      <li><a href="/dept/TC/">Tronc Commun</a></li>
      <li><a href="/dept/GI/">GI</a></li>
      <li><a href="/dept/GESC/">GESC</a></li>
      <li><a href="/dept/GMC/">GMC</a></li>
      <li><a href="/dept/IMAP/">IMAP</a></li>
      <li><a href="/dept/Humanites/">Humanités</a></li>

      <li class="menutitle">Accès direct</li>
      <li><form action="/finduv/" method="post">
        <input type="text" name="code" size="5" />
        <input type="submit" name="submit" value="Go!" />
      </form></li>
    </ul>
   </div>
    {% endif %}
  </div>

  <div id="content">
    <h2 id="content-title">{% block title %}{% endblock %}</h2>
    {% block content %}{% endblock %}
  </div>
 </body>
</html>
